package com.hxiaoyi.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * 消费者启动类
 * 备注：yml里没有配置数据库操作的会报错
 * 所以在SpringBootApplication()中加上
 * exclude= {DataSourceAutoConfiguration.class}声明一下
 * @author 黄敬意
 * @date 2022-02-02 22:05
 **/
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableEurekaClient
@EnableDiscoveryClient
//@RibbonClient(name = "CLOUD-PAYMENT-SERVICE", configuration = MySelfRule.class) //修改ribbon的负载规则
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class, args);
        System.out.println("消费服务80启动成功");
    }
}
